<template>
  <ZFilterOperate :operates="operates" @click="handleCommand" />
</template>

<script>
import ZFilterOperate from "@/components/ZFilterOperate/ZFilterOperate.vue";
export default {
  name: "FilterOperate",
  components: {
    ZFilterOperate,
  },
  data() {
    return {
      operates: [
        {
          label: "搜索",
          type: "button",
        },
        {
          label: "重置",
          type: "button",
        },
        {
          label: "导出",
          type: "down",
          dropdownMenus: [
            {
              label: "导出表格",
              value: "1",
            },
            {
              label: "导出表头",
              value: "2",
            },
          ],
        },
      ],
    };
  },
  methods: {
    handleCommand(cmd) {
      console.log(cmd);
    },
  },
};
</script>

<style></style>
